From: Aaron Schulz Date: Mon, 4 Jul 2011 19:19:36 +0000 (+0000) Subject: Removed doPurge() from ImagePage.php, already moved to WikiFilePage X-Git-Tag: 1.31.0-rc.0~29082 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=f6c6ecca6ce1f216554c77626da9f88f1f467730;p=lhc%2Fweb%2Fwiklou.git Removed doPurge() from ImagePage.php, already moved to WikiFilePage --- diff --git a/includes/ImagePage.php b/includes/ImagePage.php index ce1cbdd7c8..bd0c8f0220 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -786,26 +786,6 @@ EOT $deleter->execute(); } - /** - * Override handling of action=purge - */ - public function doPurge() { - $this->loadFile(); - if ( $this->mPage->getFile()->exists() ) { - wfDebug( 'ImagePage::doPurge purging ' . $this->mPage->getFile()->getName() . "\n" ); - $update = new HTMLCacheUpdate( $this->getTitle(), 'imagelinks' ); - $update->doUpdate(); - $this->mPage->getFile()->upgradeRow(); - $this->mPage->getFile()->purgeCache(); - } else { - wfDebug( 'ImagePage::doPurge no image for ' . $this->mPage->getFile()->getName() . "; limiting purge to cache only\n" ); - // even if the file supposedly doesn't exist, force any cached information - // to be updated (in case the cached information is wrong) - $this->mPage->getFile()->purgeCache(); - } - parent::doPurge(); - } - /** * Display an error with a wikitext description */